/* ==========================================================================
   みなと歯科 — palette
   theme: light (derived — data.colors had no theme key, text #1a1216 is dark ink)
   background: #f6f3ee  (clean warm-neutral paper)
   primary:    #1b3a4b  (data.colors.primary — deep teal-slate, used as accent fill)
   primary-ink:#0f2530  (darkened primary for text/accent text)
   secondary:  #e8d5b7  (data.colors.secondary — soft sand, used sparingly)
   text:       #1a1216  (data.colors.text)
   ========================================================================== */

:root {
  --bg: #f6f3ee;
  --bg-soft: #efeae1;
  --primary: #1b3a4b;
  --primary-ink: #122b38;
  --primary-deep: #0f2530;
  --secondary: #e8d5b7;
  --secondary-soft: #f1e6d3;
  --text: #1a1216;
  --text-muted: #5a525a;
  --line: #ddd4c4;

  --gap-s: clamp(1rem, 2vw, 1.5rem);
  --gap-y: clamp(3.5rem, 8vw, 7rem);
  --maxw: 1200px;

  --shadow-1: 0 1px 2px rgba(26, 18, 22, .06), 0 4px 12px rgba(26, 18, 22, .05);
  --shadow-2: 0 2px 6px rgba(26, 18, 22, .08), 0 12px 28px rgba(26, 18, 22, .09);
  --shadow-3: 0 4px 10px rgba(26, 18, 22, .1), 0 22px 44px rgba(26, 18, 22, .14);

  --font-disp: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

a { color: var(--primary-ink); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary); }

/* ---- header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s);
  padding: .6rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 243, 238, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .06em;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--secondary), 0 0 0 3px rgba(27, 58, 75, .25);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.8vw, 1.5rem);
  font-size: .92rem;
}
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-cta {
  padding: .55rem 1.15rem;
  min-height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}
.nav-cta:hover { background: var(--primary-ink); color: #fff; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem);
}

.eyebrow {
  font-size: .82rem;
  letter-spacing: .18em;
  color: var(--primary-ink);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1.15;
  font-weight: 700;
  margin: .4rem 0 1.2rem;
  letter-spacing: .04em;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 36em;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .25s ease, background .25s ease, color .25s ease,
              box-shadow .25s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: var(--primary-ink); color: #fff; box-shadow: var(--shadow-3); }

.btn-ghost {
  background: transparent;
  color: var(--primary-ink);
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

.hero-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  aspect-ratio: 4 / 3;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: inherit;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- sections base ---- */
main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

section { scroll-margin-top: 5rem; }

.section-head { margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.section-head h2 {
  font-family: var(--font-disp);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .03em;
  overflow-wrap: break-word;
}
.section-head .eyebrow { margin-bottom: .6rem; display: block; }

/* alternate band rhythm */
.about { background: var(--bg); padding-top: var(--gap-y); padding-bottom: var(--gap-y); }
.hours { background: var(--primary); padding-top: var(--gap-y); padding-bottom: var(--gap-y); }
.gallery { padding-top: var(--gap-y); padding-bottom: var(--gap-y); }
.reviews { background: var(--secondary-soft); padding-top: var(--gap-y); padding-bottom: var(--gap-y); }
.faq { padding-top: var(--gap-y); padding-bottom: var(--gap-y); }
.access { padding-top: var(--gap-y); padding-bottom: var(--gap-y); }
.social { background: var(--bg-soft); padding-top: var(--gap-y); padding-bottom: var(--gap-y); }

/* ---- about ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
}
.about-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 5 / 4;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

.about-copy p { color: var(--text-muted); margin-bottom: 1rem; max-width: 44em; }
.about-copy p:first-child { color: var(--text); }

.point-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: .7rem;
}
.point-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 500;
}
.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--secondary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

/* ---- hours (dark band) ---- */
.hours .section-head h2,
.hours .eyebrow { color: #fff; }
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.hours-copy p { color: rgba(255,255,255,.85); max-width: 42em; }
.hours-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,.14);
  border-radius: 14px;
  overflow: hidden;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  background: #122b38;
  color: #fff;
  font-size: 1rem;
}
.hours-list li span:first-child { font-weight: 600; }
.hours-list .t { font-weight: 500; }
.hours-list .t.muted { color: var(--secondary); }

/* ---- gallery bento ---- */
.gallery-intro {
  color: var(--text-muted);
  max-width: 46em;
  margin: -1.2rem 0 2.2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: var(--gap-s);
}
.gallery-grid figure {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.gallery-grid figure:nth-child(1) { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---- reviews ---- */
.reviews-intro { color: var(--text-muted); margin: -1.2rem 0 2rem; max-width: 32em; }
.review-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-s);
}
.review-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  transition: transform .3s ease, box-shadow .3s ease;
  border-top: 4px solid var(--secondary);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.review-text { font-size: 1.05rem; line-height: 1.9; color: var(--text); }
.review-author { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.review-date { color: var(--text-muted); font-weight: 400; margin-left: .4rem; }
.review-more { margin-top: 2rem; }

/* ---- faq ---- */
.faq-list { display: grid; gap: .9rem; }
.faq-list details {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-list details:hover { border-color: var(--primary); }
.faq-list details[open] { border-color: var(--primary); box-shadow: var(--shadow-1); }
.faq-list summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  position: relative;
  padding-right: 3rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--primary-ink);
  transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
}
.faq-more { margin-top: 1.8rem; }

/* ---- access ---- */
.access-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.access-copy p { color: var(--text-muted); margin-bottom: 1.2rem; max-width: 40em; }
.access-addr {
  font-style: normal;
  display: grid;
  gap: .3rem;
  margin: 1.4rem 0;
  font-weight: 500;
}
.access-addr a { color: var(--primary-ink); font-weight: 600; min-height: 32px; }
.access-map {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3;
}
.access-map iframe { width: 100%; height: 100%; border: 0; }

/* ---- social ---- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-s);
  margin-bottom: 2rem;
  max-width: 720px;
}
.post-card {
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.post-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.post-body { padding: 1.1rem 1.2rem; }
.post-text { font-size: .98rem; color: var(--text); }
.post-date { font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }

.social-follow { display: flex; flex-wrap: wrap; gap: .7rem; }
.social-follow a {
  padding: .6rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary-ink);
  font-size: .9rem;
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}
.social-follow a:hover { background: var(--primary); color: #fff; }

/* ---- footer ---- */
.site-foot {
  background: var(--primary-deep);
  color: rgba(255,255,255,.78);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 1.6rem;
}
.site-foot .foot-brand .brand-name {
  font-family: var(--font-disp);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.site-foot .foot-brand p { color: rgba(255,255,255,.55); font-size: .88rem; margin-top: .2rem; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
  margin: 1.6rem 0;
}
.foot-nav a { color: rgba(255,255,255,.8); font-size: .9rem; min-height: 32px; }
.foot-nav a:hover { color: var(--secondary); }
.foot-close { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 30em; }
.foot-copy { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-size: .82rem; }

/* ---- subpages ---- */
.subpage { max-width: var(--maxw); margin: 0 auto; padding-bottom: var(--gap-y); }
.subpage-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}
.subpage-hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: .04em;
}
.subpage-hero .lede { margin-top: .9rem; }
.faq-full, .reviews-full { padding-top: clamp(1rem, 3vw, 2.5rem); padding-left: clamp(1rem, 4vw, 3rem); padding-right: clamp(1rem, 4vw, 3rem); }
.faq-full .faq-list, .reviews-full .review-wrap { max-width: 720px; }
.reviews-full .review-wrap { grid-template-columns: repeat(3, 1fr); }

/* ---- reveal motion ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.hero [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .gallery-grid figure, .review-card, .post-card { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
  .about-grid, .hours-grid, .access-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .review-wrap { grid-template-columns: 1fr; max-width: 560px; }
  .reviews-full .review-wrap { grid-template-columns: 1fr; max-width: 560px; }
  .social-grid { grid-template-columns: 1fr; max-width: 420px; }
  .access-map { order: -1; }
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 520px) {
  .hours-list li { padding: .9rem 1.1rem; }
  .gallery-grid { grid-auto-rows: 130px; gap: .7rem; }
  .gallery-grid figure:nth-child(1) { grid-column: span 2; }
  .post-card, .review-card, .access-map, .hero-media, .about-media { border-radius: 14px; }
}


.faq-list summary { cursor: pointer; }


.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.access-addr a { min-height: 44px; display: inline-flex; align-items: center; }


.social-follow a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }


.social-follow a { min-width: 48px; }


.nav a { padding: 0 .25rem; }


.nav a, .foot-nav a { min-width: 44px; }
